﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Simple.Common.Core.Collections.Extensions
{
    public static class CollectionExtensions
    {
        /// <summary>
        /// 判断集合对象是否为null或则集合数量是0
        /// </summary>
        public static bool IsNullOrEmpty<T>(this ICollection<T> source)
        {
            return source == null || source.Count <= 0;
        }
    }
}
